#ifndef _UI_H_
#define _UI_H_
#include "Head.h"
#include "motor_bsp.h"
typedef struct Motor_Function
{
    void (*Start_Button_Calllback)(void);
    void (*Reset_Button_CallBack)(void);
    void (*Stop_Button_Callbak)(void);
    void (*Back_To_First_Page_Callback)(void);
}Motor_Function;

typedef struct motor_mode
{
    uint8_t mode;
    uint16_t speed_x;
    uint16_t speed_y;
    uint16_t distance_x;
    uint16_t distance_y;
    uint16_t nozzle_high;
}motor_mode_t;

typedef struct paint_message_t
{
    cmd_type_t cmd_type;
    motor_mode_t speed_len_data;
}paint_message_t;

extern motor_mode_t motor_mode;
extern Motor_Function Motor_Fun;

void Start_Button_Calllback(void);
motor_mode_t get_mode_speed(uint8_t id, uint8_t len);
uint32_t get_plus_num(uint16_t run_len);
#endif